<div ng-show="banner.type ==1">
    <label class="control-label">banner图片：</label><br>
    <img style="width:450px" ng-src="{{banner.imageURL}}">
</div>
<div ng-show="banner.type ==2">
    <label class="control-label">新鲜事内容：</label><br>
    {{banner.message}}
</div>

<br><br>
<a  ng-show="banner.type ==1" class="btn-primary btn-sm" ng-click="editImg()">修改图片</a>
<a  ng-show="banner.type ==2" class="btn-primary btn-sm" ng-click="editImg()">修改内容</a>
<a class="btn-primary btn-sm" ng-click="bindCommunity()">绑定小区</a>
<br>
<br>
类型：{{content.tagName}}
<br>
<span ng-show="content.title!=null">
    标题：{{content.title}}
</span><br>

</span><br>
<span ng-show="content.createdBy!=null">
    创建者：{{content.createdBy.nickName}}
</span>
<br>
<br>
<div class="tab-content">
    <div class="tab-pane active" id="tab_a">
        <table class="table table-condensed">
            <thead>
            <tr>
                <th>已绑定小区</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="bind in bindList">
                <td>{{bind.community.communityName}}</td>
                <td>
                    <button type="button" class="btn btn-danger btn-xs"
                            ng-click="deleteBind(bind.objId)">
                        删除
                    </button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<div class="modal fade" id="img" tabindex="-1" role="dialog" aria-labelledby="helpModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
                <h5 ng-show="banner.type ==1" class="modal-title">修改图片</h5>
                <h5 ng-show="banner.type ==2" class="modal-title">修改内容</h5>
            </div>
            <div class="modal-body">
                <input ng-show="banner.type ==1" type="file"
                       onchange="angular.element(this).scope().selectFile(this.files)" accept="image/*">
                <input ng-show="banner.type ==2" class="form-control" type="text" placeholder="内容" ng-model="message">
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" ng-click="confirmEdit()">确定</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="bind" tabindex="-1" role="dialog" aria-labelledby="helpModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
                <h5 class="modal-title">绑定小区</h5>
            </div>
            <div class="modal-body">
                <label ng-repeat="m in content.community">
                    <input type="checkbox" style="zoom:1.8;margin-left: 10px;vertical-align:middle" ng-model="chk"
                           ng-click="toggle(chk,m.objId)" ng-disabled="bindIds.indexOf(m.objId)!=-1"
                           ng-checked="bindIds.indexOf(m.objId)!=-1"
                            /> {{m.communityName}}
                </label>

                <div class="modal-footer">
                    <button type="button" class="btn btn-default" ng-click="confirmBind()">确定</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>